﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Lswweb.IDAL;
using Lswweb.Model;
using Lswweb.Domain;

namespace Lswweb.Controls
{
    public class NewsletterList: SkinnedGridView<NewsletterInfo>
    {
        protected override IList<NewsletterInfo> GridViewDataSourceHandler(int pageIndex, int pageSize, out int totalRecord)
        {
            return Newsletter.FindAll(pageIndex,pageSize,out totalRecord);
        }

        protected override string DefaultSkinFilename
        {
            get { return "Newsletter/NewsletterList.ascx"; }
        }
    }
}
